package com.boco.transnms.server.dao.path;

import com.boco.transnms.server.dao.base.AbstractDAO;
import com.boco.transnms.server.dao.base.DaoName;
import com.boco.transnms.common.dto.base.BoActionContext;
import com.boco.transnms.common.dto.TransPathBlend;


public class TransPathBlendDAO extends AbstractDAO {
    public TransPathBlendDAO() {
       super(DaoName.TransPathBlendDAO);
   }

   public TransPathBlend getTransPathBlendByCuid(BoActionContext actionContext, String cuid) throws Exception {
       TransPathBlend dbo = new TransPathBlend();
       if (cuid != null) {
           dbo.setCuid(cuid);
       } else {
           dbo.setCuid("");
       }
       return (TransPathBlend)super.getObjByCuid(dbo);
    }

    public TransPathBlend addTransPathBlend(BoActionContext actionContext, TransPathBlend dbo) throws Exception {
        super.createObject(actionContext, dbo);
        return dbo;
    }

    public void modifyTransPathBlend(BoActionContext actionContext, TransPathBlend dbo) throws Exception {
        dbo.clearUnknowAttrs();
        dbo.convAllObjAttrToCuid();
        super.updateObject(actionContext, dbo);
    }


    public void deleteTransPathBlend(BoActionContext actionContext, TransPathBlend transPathBlend) throws Exception {
        super.deleteObject(actionContext, transPathBlend);
    }

}
